.app {
    --duration: 400ms;
    --delay: 220ms;
    --color: #E7EEF8;
    --darker-color: #6690D6;
    --faded-color: rgba(152, 182, 225, 0.5);
}
.app {
    width: 100%;
    height: 100%;
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    left: 0;
    flex-direction: column;
    background: var(--color);
}
.app:before {
    font-family: monospace;
    content: attr(data-state);
    margin-bottom: .5em;
}
/* ---------------------------------- */

.device {
    width: 100%;
    max-width: 30rem;
    display: grid;
    border-radius: 1vmin;
    background-color: #fff;
    box-shadow: 0 2vmin 3vmin var(--faded-color);
    padding: 2vw;
    overflow: hidden;
}
/* ---------------------------------- */

.dummy-list {
    margin: 0;
    padding: 0;
    list-style-type: none;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-column-gap: 1vw;
    grid-row-gap: 1vw;
}
.dummy {
    width: 100%;
    padding-top: 100%;
    background: var(--color);
    background-position: center center;border-radius:40px;
    background-repeat: no-repeat;
    background-size: cover;
}
.dummy {
    -webkit-animation: enter 0.4s cubic-bezier(0.5, 0, 0.5, 1) backwards;
    animation: enter 0.4s cubic-bezier(0.5, 0, 0.5, 1) backwards;
}
@-webkit-keyframes enter {
    from {
        opacity: 0;
        -webkit-transform: translateY(2rem) scale(0.6);
        transform: translateY(2rem) scale(0.6);
    }
}
@keyframes enter {
    from {
        opacity: 0;
        -webkit-transform: translateY(2rem) scale(0.6);
        transform: translateY(2rem) scale(0.6);
    }
}

.dummy {
    -webkit-animation-delay: calc( var(--col-index) * (var(--delay)) + var(--row-index) * (var(--delay)/2));
    animation-delay: calc( var(--col-index) * (var(--delay)) + var(--row-index) * (var(--delay)/2));
}
/* ---------------------------------- */

*,
*:before,
*:after {
    box-sizing: border-box;
    position: relative;
}
body {
    display: flex;
    justify-content: center;
}
body,
html {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}
body:before {
    pointer-events: none;
    content: '';
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.05;
    display: flex;
    justify-content: center;
    align-items: center;
    -webkit-animation: ghost 10s ease-in-out infinite;
    animation: ghost 10s ease-in-out infinite;
    z-index: 100000;
}
@-webkit-keyframes ghost {
    from, to {
        -webkit-transform: translateX(-25%) scale(2) skewX(-30deg);
        transform: translateX(-25%) scale(2) skewX(-30deg);
    }
    50% {
        -webkit-transform: translateX(25%) scale(2.2) skewX(30deg);
        transform: translateX(25%) scale(2.2) skewX(30deg);
    }
}
@keyframes ghost {
    from, to {
        -webkit-transform: translateX(-25%) scale(2) skewX(-30deg);
        transform: translateX(-25%) scale(2) skewX(-30deg);
    }
    50% {
        -webkit-transform: translateX(25%) scale(2.2) skewX(30deg);
        transform: translateX(25%) scale(2.2) skewX(30deg);
    }
}

.ribbon {
    display: flex;
    justify-content: center;
    position: absolute;
    right: 60px;
    top: 10px;
    margin: auto;
}

.ribbon:after,
.ribbon:before {
    margin-top: 0.5em;
    content: '';
    display: flex;
    border: 1.5em solid #fff;
}

.ribbon:after {
    border-right-color: transparent;
}

.ribbon:before {
    border-left-color: transparent;
}

.ribbon a:link,
.ribbon a:visited {
    color: #000;
    text-decoration: none;
    height: 3.5em;
    overflow: hidden;
}

.ribbon span {
    width: 80px;
    background: #fff;
    display: inline-block;
    line-height: 3em;
    padding: 0 1.5em;
    margin-top: 0.5em;
    position: relative;
    -webkit-transition: background-color 0.2s, margin-top 0.2s;
    /* Saf3.2+, Chrome */
    -moz-transition: background-color 0.2s, margin-top 0.2s;
    /* FF4+ */
    -ms-transition: background-color 0.2s, margin-top 0.2s;
    /* IE10 */
    -o-transition: background-color 0.2s, margin-top 0.2s;
    /* Opera 10.5+ */
    transition: background-color 0.2s, margin-top 0.2s;
}

.ribbon a:hover span {
    background: #ffd204;
    margin-top: 0;
}

.ribbon span:before {
    content: '';
    position: absolute;
    top: 3em;
    left: 0;
    border-right: 0.5em solid #9b8651;
    border-bottom: 0.5em solid #fff;
}

.ribbon span:after {
    content: '';
    position: absolute;
    top: 3em;
    right: 0;
    border-left: 0.5em solid #9b8651;
    border-bottom: 0.5em solid #fff;
}